<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 15-3-21
 * Time: 下午4:01
 */
function mcitUrl($id,$type){
    switch ($type) {
        case 'edit_user1':
            $url = U('Set/editUser',array('id'=>url_base64_encode($id)));
            break;
        default:
            $url = '#404';
            break;
    }
    return $url;
}

//执行url
function responseURL($url){
    $ch = curl_init( );
    curl_setopt( $ch,CURLOPT_URL,$url );
    curl_setopt( $ch,CURLOPT_HEADER,0 );
    curl_setopt( $ch,CURLOPT_RETURNTRANSFER,1 );
    //$ret= curl_exec( $ch );
    curl_exec( $ch );
    curl_close( $ch );
    //echo $ret;
}